Page({
    onReady: function(e) {
        this.mapCtx = wx.createMapContext('myMap')
    },
    getCenterLocation: function() {
        this.mapCtx.getCenterLocation({
            success: function(res) {
                console.log(res.longitude)
                console.log(res.latitude)
            }
        })
    },
    getViewMap() {
        wx.chooseLocation({
            success(res) {
                console.log(res)
            }
        })
    }
})